<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            background: url("image/bj2.jpg") no-repeat;
            /*height: 100%;*/
            background-size: cover;
        }

        ul {
            width: 200px;
            height: 200px;
            /*background-color: red;*/
            position: absolute;
            bottom: 120px;
            left: 50%;
            margin-left: -100px;
            transform-style: preserve-3d;
            transform: rotateX(-10deg) rotateY(0deg);
            /*overflow: hidden;*/
            animation: sport 6s linear 0s infinite;
        }

        ul li {
            list-style: none;
            width: 200px;
            height: 200px;
            font-size: 60px;
            text-align: center;
            line-height: 200px;
            position: absolute;
            left: 0;
            top: 0;
        }

        ul:hover{
            animation-play-state: paused;
        }
       /* ul li:hover img{
            !*animation-play-state: paused;*!
            width: 210px;
            height: 210px;


        }*/

        ul li:nth-child(1){
            background-color: green;
            transform: rotateY(60deg) translateZ(200px);
        }

        ul li:nth-child(2){
            background-color: blue;
            transform: rotateY(120deg) translateZ(200px);
        }
        ul li:nth-child(3){
            background-color: yellow;
            transform: rotateY(180deg) translateZ(200px);
        }

        ul li:nth-child(4){
            background-color: pink;
            transform: rotateY(240deg) translateZ(200px);
        }

        ul li:nth-child(5){
            background-color: purple;
            transform: rotateY(300deg) translateZ(200px);
        }

        ul li:nth-child(6){
            background-color: gold;
            transform: rotateY(360deg) translateZ(200px);
        }

        ul li img{
            width: 200px;
            height: 200px;
            border: 5px solid skyblue;
            box-sizing: border-box;
        }
        
        @keyframes sport {
            from{
                /*

                注意点：
                动画中如果存在和默认样式中相同的属性
                会覆盖默认样式的
                在编写动画时,固定不变的值放在前面,需要变化的放到后面
                */
                transform: rotateX(-10deg) rotateY(0deg);
            }
            to{
                transform: rotateX(-10deg) rotateY(360deg);
            }
        }
    </style>
</head>
<body>


<ul>
    <li><img src="image/1.jpg" alt=""></li>
    <li><img src="image/2.jpg" alt=""></li>
    <li><img src="image/3.jpg" alt=""></li>
    <li><img src="image/4.jpg" alt=""></li>
    <li><img src="image/5.jpg" alt=""></li>
    <li><img src="image/6.jpg" alt=""></li>
</ul>
</body>
</html>